package com.haredot.vo;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

public class UserOneVo {

    @NotEmpty(message = "手机号不允许为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String tel ;

    @NotEmpty(message = "邮箱不允许为空")
    @Email(message = "邮箱格式不正确")
    private String email ;

    @NotEmpty(message = "密码不允许为空")
    @Length(min = 6, max = 20, message = "密码长度应在6 ~ 20位之间")
    private String password ;

    private String uid ;

    private String type ;

    private String sign ;

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}
